﻿package vo;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;


/**商店：
 * 包括您的姓名、手机、邮箱、其他联系方式（例如qq）、商家类型、上传营业执照、身份证正反扫描件、门店名称、城市、详细地址、门店电话,投诉的次数
 * 
 */
@Entity
@Table
public class Store {
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer storeId;

	private String sellerName;//卖家姓名
	private String mobile;//手机号（账号）
	private String tele;//电话
	@Column(length=32)
	private String email;//电子邮箱
	@Column(length=32)
	private String qq;//联系方式
	private String type;//商家类型
	private String passwd;//密码                                   
	private String shopName;//门店名称
	private String details;//详细地址
	@Column(length=3)
	private int status;//商家的状态
	
	
	@Embedded
	@AttributeOverrides({
			@AttributeOverride(name = "province", column = @Column(name = "province",nullable = false)),
			@AttributeOverride(name = "city", column = @Column(name = "city",nullable = false)),
			@AttributeOverride(name = "town", column = @Column(name = "town",nullable = false)),
			@AttributeOverride(name = "detailAddress", column = @Column(name = "detailAddress",nullable = false)) })
	private StoreAddress sellerAddress;

	private int complainNum;//投诉得次数
	
	private String obverseCardPhoto;
	private String reverseCardPhoto;
	private String shopfrontPhoto;
	private String shopinsidePhoto;
	private String businessLicense;
	private String cateringServiceLicense;
	
	public int getComplainNum() {
		return complainNum;
	}
	public void setComplainNum(int complainNum) {
		this.complainNum = complainNum;
	}
	
	public Integer getStoreId() {
		return storeId;
	}
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	public String getSellerName() {
		return sellerName;
	}
	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getTele() {
		return tele;
	}
	public void setTele(String tele) {
		this.tele = tele;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public StoreAddress getSellerAddress() {
		return sellerAddress;
	}
	public void setSellerAddress(StoreAddress sellerAddress) {
		this.sellerAddress = sellerAddress;
	}
	public String getObverseCardPhoto() {
		return obverseCardPhoto;
	}
	public void setObverseCardPhoto(String obverseCardPhoto) {
		this.obverseCardPhoto = obverseCardPhoto;
	}
	public String getReverseCardPhoto() {
		return reverseCardPhoto;
	}
	public void setReverseCardPhoto(String reverseCardPhoto) {
		this.reverseCardPhoto = reverseCardPhoto;
	}
	public String getShopfrontPhoto() {
		return shopfrontPhoto;
	}
	public void setShopfrontPhoto(String shopfrontPhoto) {
		this.shopfrontPhoto = shopfrontPhoto;
	}
	public String getShopinsidePhoto() {
		return shopinsidePhoto;
	}
	public void setShopinsidePhoto(String shopinsidePhoto) {
		this.shopinsidePhoto = shopinsidePhoto;
	}
	public String getBusinessLicense() {
		return businessLicense;
	}
	public void setBusinessLicense(String businessLicense) {
		this.businessLicense = businessLicense;
	}
	public String getCateringServiceLicense() {
		return cateringServiceLicense;
	}
	public void setCateringServiceLicense(String cateringServiceLicense) {
		this.cateringServiceLicense = cateringServiceLicense;
	}
	
	
	
}

